//
//  YQLocationCategoryCollViewCell.swift
//  MuYing
//
//  Created by tbb on 2019/8/21.
//  Copyright © 2019 TBB. All rights reserved.
//

import UIKit

class YQLocationCategoryCollViewCell: UICollectionViewCell {
    
    @objc var isSelectCell: Bool = false {
        didSet {
            if isSelectCell {
                self.titleLb.textColor = UIColor.white;
                self.contentView.backgroundColor = appThemeColor;
            }else{
                self.titleLb.textColor = UIColorFromHex(rgbValue: 0xA0A0A0);
                self.contentView.backgroundColor = .white;
            }
        }
    }

    @objc @IBOutlet weak var titleLb: UILabel!
    override func awakeFromNib() {
        super.awakeFromNib()
        self.titleLb.textColor = UIColorFromHex(rgbValue: 0xA0A0A0);
        self.titleLb.font = UIFont.systemFont(ofSize: 12, weight: .medium);
        self.contentView.backgroundColor = .white;
    }

}
